# Contributor: Will Sinatra <wpsinatra@gmail.com>
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=tty-solitaire
pkgver=1.3.1
pkgrel=1
pkgdesc="ncurses-based klondike solitaire game"
url="https://github.com/mpereira/tty-solitaire"
license="MIT"
arch="all"
depends="ncurses"
makedepends="ncurses-dev"
source="tty-solitaire-$pkgver.tar.gz::https://github.com/mpereira/tty-solitaire/archive/v$pkgver.tar.gz
	werrorformat.patch
	"
options="!check"

build() {
	make
}

check() {
	make test
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" install
}

sha512sums="
45c80da0c16e165df313dc4cb5d338271b701c2957c858b8e4b9c73e203e84b9a8bf664e6c25ca3d49c63960bd051e783a0f1c04b3f7df394eeba1774d801f6a  tty-solitaire-1.3.1.tar.gz
eebc33f57613fa7d51666625e395a77eafc429aac86ef0f3e50fa1860c1685b779907a0e4eec63b9e5ad95be595bdc4d99b56359fb4da63f0c62c9e102365cb2  werrorformat.patch
"
